Skip to content

Resolving view name in Request Vars panel. #214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

thinred
Copy link

@thinred thinred commented Sep 28, 2011

I've found it very helpful to resolve named views in Request Vars panel. That way I can use 'reverse' with the given name in my source code without looking in urls.py.

This patch removes 'process_view' method from request vars panel. This in turn breaks my 2 old tests. In that case I've removed them and wrote 4 tests for request vars panel instead. They basically cover all the view information in request vars panel.

The code and tests run differently on Django prior to 1.3 and Django >= 1.3 (see https://docs.djangoproject.com/en/dev/topics/http/urls/#resolve). In the formem case the URL name is not resolved and <unavailable> is returned instead.

@jezdez jezdez closed this in 963ec33 Apr 7, 2012
ryneeverett pushed a commit to ryneeverett/django-debug-toolbar that referenced this pull request Oct 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants